package com.example.music.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lee
 * @since 2022-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Music对象", description="")
public class Music implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "歌曲名称")
    private String title;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "歌曲链接")
    private String musicPath;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)//创建注解
    private Date gmtCreate;

    @ApiModelProperty(value = "'逻辑删除 1（true）已删除， 0（false）未删除'")
    @TableField(fill = FieldFill.INSERT)//创建注解
    @TableLogic
    private Integer isDeleted;
    @TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
    @ApiModelProperty(value = "更新时间")
    private Date gmtModified;

    private String fileName;


}
